package com.foreknow.service;

import com.foreknow.dao.AdminDao;
import com.foreknow.dao.AdminDaoImpl;
import com.foreknow.model.Admin;

public class AdminService {

    private AdminDao adminDao;

    public void setAdminDao(AdminDao adminDao) {
        this.adminDao = adminDao;
    }

    public Admin getQueryInfo(Integer id) {
        return adminDao.getQueryById(id);
    }

//    public static void main(String[] args) {
//        AdminService service  = new AdminService();
//        service.setAdminDao(new AdminDaoImpl());
//    }
}
